﻿@model ViewModel.AdmLogOnModel
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Blank_Html.cshtml";
}
@section Head{
    <script type="text/javascript" src="@Url.Content("~/Content/boot/js/jquery-1.8.3.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"> </script>
    <style type="text/css">
        * html
        {
            background-color: #f5f5f5;
        }
        body
        {
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #f5f5f5;
        }
        
        .form-signin
        {
            max-width: 300px;
            _width: 300px;
            padding: 19px 29px 29px;
            margin: 0 auto 20px;
            background-color: #fff;
            border: 1px solid #e5e5e5;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
            -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
            box-shadow: 0 1px 2px rgba(0,0,0,.05);
        }
        .form-signin .form-signin-heading, .form-signin .checkbox
        {
            margin-bottom: 10px;
        }
        .form-signin input[type="text"], .form-signin input[type="password"]
        {
            font-size: 16px;
            height: auto;
            margin-bottom: 15px;
            padding: 7px 9px;
        }
    </style>
}
<div class="container">
    @using (Html.BeginForm("Login", "AdmCol", FormMethod.Post, new { @class = "form-signin" }))
    {
        <h2 class="form-signin-heading">
            管理员人员登陆</h2>
        @Html.TextBoxFor(m => m.UserName, new { @class = "input-block-level", placeholder = "用户名" })@Html.ValidationMessageFor(m => m.UserName)
        @Html.TextBoxFor(m => m.Password, new { @class = "input-block-level", placeholder = "密码" })@Html.ValidationMessageFor(m => m.Password)
        <label class="checkbox">
            @Html.CheckBoxFor(m => m.RememberMe)
            @Html.LabelFor(m => m.RememberMe)
        </label>
        
    @Html.ValidationSummary(true, "登录失败.", new { @class = "red" })
        <button class="btn btn-large btn-primary" type="submit">
            登入</button>
    }
</div>
